#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QAction>
#include <QTimer>
#include <qwt_plot_curve.h>
#include "buffer.h"
#include "data_plot.h"

namespace Ui
{
    class MainWindowClass;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    double getPlotValueX();
    bool 	hayVectorX();
    double getVectorX();
    ~MainWindow();

private slots:
    void graficar();
    void pararTimer();

private:
    Ui::MainWindowClass *ui;
    QAction* x;
    QAction* y;
    QAction* z;	
    QAction* parar;
	Buffer buffer;    
    DataPlot *plot;
    QwtPlotCurve *curve1;
    QwtPlotCurve *curve2;
    QwtPlotCurve *curve3;
    QTimer *timer;
    double ejeX[20000];
};

#endif // MAINWINDOW_H
